package com.baitiaojun.user.service;

import com.baitiaojun.api.domain.user.User;

/**
 * @类名 SystemService
 * @描述 TODO
 * @作者 白条君
 * @创建日期 2023/2/23 16:02
 * @版本 1.0
 */
public interface SystemService {

    void register(User user) throws Exception;

    User getUserByPhone(String phone);

    String login(User user) throws Exception;

    User getUserAndUserInfo(Long userId) throws Exception;

    void cancellation(String token, String phone);
}
